package com.own.business.system.dictionary.adapter.manage.doc;

import com.own.component.springdoc.DefaultSecuritySpringDocConfiguration;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

import javax.annotation.Resource;

/**
 * SystemDictionaryAdapterManageApiDocConfiguration
 *
 * @author chenxueli
 * @date 2024-05-21 10:19:25
 */
@SpringBootConfiguration
public class SystemDictionaryAdapterManageApiDocConfiguration {

    @Resource
    private DefaultSecuritySpringDocConfiguration defaultSecuritySpringDocConfiguration;

    @Bean
    public GroupedOpenApi systemDictionaryAdapterManageApiDoc() {
        return defaultSecuritySpringDocConfiguration.create(
                "数据字典管理",
                this.getClass().getPackageName(),
                "com.own.business.system.dictionary.adapter.manage.controller"
        );
    }

}
